package com.eyedsion.his.web.entity.common;

import com.fasterxml.jackson.annotation.JsonInclude;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author 彭长云
 * @Description:同步日志
 * @date 2018/12/19 10:13
 */
@Entity
@Table(name = "dec_sync_log")
public class DecSyncLog extends BaseEntity{
    public final static String SYNC_TYPE_QL = "1";
    public final static String SYNC_TYPE_ZL = "2";
    public final static String SYNC_STATUS_SUCCESS = "success";
    public final static String SYNC_STATUS_ERROR = "error";
    public final static String TYPE_BUSINESSDATA = "businessData";
    public final static String TYPE_BASEDATA = "baseData";

    @Id
    @GeneratedValue
    private Long code;//日志Code [CODE, VARCHAR2, 32]
    private String type;//业务类型 [TYPE, VARCHAR2, 32]
    private String remark;//备注信息 [REMARK, VARCHAR2, 100]
    private String status;//状态 [STATUS, VARCHAR2, 2]
    private String syncType;//1.全量，2增量 [SYNC_TYPE, VARCHAR2, 2]
    private String result;//描述同步结果 [RESULT, VARCHAR2, 2000]

    public DecSyncLog(String type, String status, String syncType, String remark, String result) {
        this.type = type;
        this.remark = remark;
        this.status = status;
        this.syncType = syncType;
        this.result = result;
    }

    public DecSyncLog(String result) {
        this.result = result;
    }

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSyncType() {
        return syncType;
    }

    public void setSyncType(String syncType) {
        this.syncType = syncType;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
}
